package com.jiaozi.system.pojo.vo.sys.role;

import com.jiaozi.base.enums.sys.StateEnum;
import com.jiaozi.base.enums.sys.bean.TagEnumBean;
import com.jiaozi.core.table.annotation.Column;
import com.jiaozi.core.table.enums.ColumnTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(name = "角色分页列表")
@Data
public class RolePageVO {
    @Schema(description = "主键")
    private String id;
    @Schema(description = "角色名称")
    @Column(label = "角色名称",order = 1)
    private String roleName;
    @Schema(description = "顺序0~99")
    @Column(label = "排序",order = 2,sortable=true)
    private String roleSort;
    @Schema(description = "状态")
    private StateEnum roleState;
    @Column(label = "备注",order = 4)
    @Schema(description = "备注")
    private String roleRemarks;
    @Column(label = "创建时间",order = 5,sortable=true)
    @Schema(description = "创建时间")
    private Date createdTime;
    @Column(label = "状态",order = 3,type = ColumnTypeEnum.enu)
    @Schema(description = "状态展示数据")
    private TagEnumBean roleStateTagEnumBean;
    public TagEnumBean getRoleStateTagEnumBean() {
        return roleState.getTagBean();
    }
}
